package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs=new Student("张三",25,"jsd2302","廊坊","001");

        zs.eat();
        zs.sayHi();
        zs.sleep();
        zs.study();

        Teacher ls=new Teacher("李四",24,"jsd2302","武汉","002",5000.0);


        ls.eat();
        ls.study();
        ls.sayHi();
        ls.sleep();
        ls.teach();

        Doctor ww=new Doctor("王五",30,"jsd2302","上海","003",8000.0,"");
        ww.cut();
        ww.study();
        ww.eat();
        ww.sayHi();
        ww.sleep();
        ww.teach();
    }
}
